package chenji.gunapi.manager;

import java.util.HashSet;

import org.bukkit.entity.Player;

public class SuperManager {
	public HashSet<Manager> managers = new HashSet<>();

	public void registerManager(Manager m) {
		this.managers.add(m);
	}

	public void onDisable() {
		for (Manager m : this.managers) {
			m.onDisable();
		}
	}

	public void onPlayerJoin(Player p) {
		for (Manager m : this.managers) {
			m.onPlayerJoin(p);
		}
	}

	public void onPlayerQuit(Player p) {
		for (Manager m : this.managers) {
			m.onPlayerQuit(p);
		}
	}
}
